<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  created() {
    this.init();
  },
  methods: {
    init() {
      // 刷新页面时返回到主页
      if (performance.navigation.type == 1) {
        this.$router.push({
          path:'/'
        });
      } else {
        console.info("This page is not reloaded");
      }
    },
  },
};
</script>

<style>
</style>